package server;

import java.util.LinkedList;

public class TagHandlerList {

	private LinkedList<TagHandler> list;

	public TagHandlerList() {
		this.list = new LinkedList<TagHandler>();
	}

	public TagHandlerList(TagHandlerList list) {
		this.list = new LinkedList<TagHandler>(list.getList());
	}

	public synchronized LinkedList<TagHandler> getList() {
		return new LinkedList<TagHandler>(list);
	}

	public synchronized TagHandler get(int i) {
		return this.list.get(i);
	}

	public synchronized void add(TagHandler d) {
		this.list.add(d);
	}

	public synchronized void remove(int i) {
		this.list.remove(i);
	}

	public synchronized boolean isEmpty() {
		return this.list.isEmpty();
	}

	public synchronized int size() {
		return this.list.size();
	}

}
